name: 🦜🔍 Lint

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
  schedule:
    - cron: "0 5 * * *"

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Check out source repository
        uses: actions/checkout@v3
      - name: Run ruff
        uses: chartboost/ruff-action@v1
        with:
          version: 0.0.270
      - name: Run black
        uses: psf/black@stable
        with:
          version: 23.3.0
      - name: Run ShellCheck
        uses: ludeeus/action-shellcheck@master
        with:
          version: v0.7.0
